package com.cljz.makepassenger.ui.holder;

import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.cljz.makepassenger.R;
import com.cljz.makepassenger.model.map.City;

import java.util.List;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * Created by apple on 2017/4/7.
 */

public class MapAddressListHolder extends RecyclerView.ViewHolder {
    public MapAddressListHolder(View itemView) {
        super(itemView);
        ButterKnife.bind(this, itemView);

    }

    @BindView(R.id.tv_address_name)
    TextView tvAddressName;
    @BindView(R.id.tv_address_address)
    TextView tvAddressAddress;
    @BindView(R.id.iv_select)
    ImageView ivSelect;
    private City city;


    public void setData(List<City> suggestionInfoList, int position) {
        city = suggestionInfoList.get(position);
        tvAddressName.setText(city.getAreaName());
        tvAddressAddress.setText(city.getAddress());
    }
}
